package com.huawei.hms.aaid.b;

import android.content.Context;
import com.huawei.hms.aaid.entity.AAIDResult;
import java.util.concurrent.Callable;

public class a implements Callable<AAIDResult> {
    private Context a;

    public a(Context context) {
        this.a = context;
    }

    public AAIDResult call() throws Exception {
        if (this.a == null) {
            throw com.huawei.hms.aaid.constant.a.a(com.huawei.hms.aaid.constant.a.ERROR_ARGUMENTS_INVALID);
        }
        String b = com.huawei.hms.aaid.c.a.b(this.a);
        AAIDResult aAIDResult = new AAIDResult();
        aAIDResult.setId(b);
        return aAIDResult;
    }
}
